Incremental inline journaling in a journaled file system

ABSTRACT

Incremental inline journaling in a journaled file system can be utilized to facilitate concurrency and throughput of a journaled file system. In an example, a request can be received for a transaction to modify a sub-block portion of a file stored in a distributed storage system. In response to that, the modification can be allocated to a data structure in a journal of the distributed storage system. After the transaction commits, a current value of the sub-block portion of the file can be saved to the delta structure. Then, a new value corresponding to the request for the transaction to modify the sub-block portion of the file can be written to the metadata block. After writing the new value to the metadata block, a memory space used to store the delta structure can be freed.

TECHNICAL FIELD

The present application relates generally to techniques for modification of files stored in journaled computer file systems, and more specifically, to performing inline incremental journaling in such file systems.

BACKGROUND

A distributed storage system generally is a form of computer data storage that can provide remote data storage and access to one or more client computers. In some embodiments, multiple users or client computers can have access to alter at least some of the data stored in the distributed storage system.

BRIEF DESCRIPTION OF THE DRAWINGS

Numerous aspects, embodiments, objects, and advantages of the present invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which:

FIG. 1 illustrates a block diagram of an example system that can facilitate incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure;

FIG. 2 illustrates an example of a journaled file system that can facilitate incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure;

FIG. 3 illustrates an example process flow for facilitating incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure;

FIG. 4 illustrates example tables of performance of the present techniques compared to performance of prior techniques, in accordance with certain embodiments of this disclosure;

FIG. 5 illustrates more example tables of performance of the present techniques compared to performance of prior techniques, in accordance with certain embodiments of this disclosure;

FIG. 6 illustrates an example graph of performance of the present techniques compared to performance of prior techniques, in accordance with certain embodiments of this disclosure;

FIG. 7 illustrates another example graph of performance of the present techniques compared to performance of prior techniques, in accordance with certain embodiments of this disclosure;

FIG. 8 illustrates another example process flow for facilitating incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure;

FIG. 9 illustrates a block diagram of an example distributed file storage system that employs tiered cloud storage in accordance with certain embodiments of this disclosure; and

FIG. 10 illustrates an example block diagram of a computer operable to execute certain embodiments of this disclosure.

DETAILED DESCRIPTION

Overview

As described herein, a distributed storage system can have an operating system. The operating system can provide updates to one or more remote computers about changes to files in the distributed storage system, using an application-layer network protocol. The present disclosure generally describes embodiments where the distributed storage system can be an EMC Isilon Cluster distributed storage system, and the operating system can be a OneFS operating system (and file system). It can be appreciated that there are other embodiments that utilize different technologies than described herein.

A file system of a distributed storage system can be journaled. In a journaled file system, journal deltas can facilitate limited concurrent transaction support by allowing concurrent order independent operations to blocks, without holding the blocks exclusively locked for the duration of the operations. Delta operations stored in a journal can reference to a copy of a block that stored in the journal. This block can be called predecessor block. When applying a delta, a journal can first try to find a predecessor block. If such a predecessor block does not exist, then the journal can create one by reading the block. If a transaction with deltas is aborted, then one or more corresponding deltas that are stored in a journal can be reclaimed.

Expiring one or more deltas of a committed transaction can be a complex operation. In some examples, a process referred to as a delta reaper can be used to unlink deltas of committed transactions. A delta reaper can simultaneously update a predecessor block in a journal, and mark committed deltas invalid as appropriate. A delta reaper can invalidate these deltas by storing a reference to these deltas in blocks referred to as reaper blocks, followed by updating the predecessor block using a transaction. A delta reaper can hold a buf lock during this operation, and this operation can involve scanning deltas and selecting reapable candidates, transactionally updating a predecessor block, and unlinking committed deltas. This operation by a delta reaper can have a problem of contributing to a tail latency of these transactions, as well as a problem of reducing an overall throughput on a node while a delta reaper is running

As described herein, and in contrast to the above approaches, a way to improve upon the above problems can involve collecting journal deltas inline with their application. Where a point-in-time consistent value of a delta field in a block (e.g., offset:size) can be durably recorded, then the corresponding delta block can be freed. Such an approach can involve atomically updating a corresponding predecessor block stored in a journal, and unlinking the corresponding delta. This approach can provide a single-reap-per-delta semantic. This approach can be accomplished by storing the previous predecessor value in a delta, updating the corresponding predecessor block with a new value, and then unlinking the delta.

Example Architectures

The disclosed subject matter is now described with reference to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed subject matter. It may be evident, however, that the disclosed subject matter may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to facilitate describing the disclosed subject matter.

FIG. 1 illustrates a block diagram of an example system that can facilitate incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure. System 100 comprises server 102, client computer 104 a, client computer 104 b, and communications network 106. Each of client computer 104 a and client computer 104 b can be implemented using aspects of computer 1002 of FIG. 10. Communications network 106 can comprise a computer communications network, such as the Internet.

Server 102 can be implemented using aspects of distributed file storage system 900 of FIG. 9 and computer 1002 of FIG. 10. It can be appreciated that server 102 is presented logically, and that there can be embodiments where server 102 comprises multiple computers. In some examples, server 102 can implement a OneFS operating system, or an installable file system (IFS).

As depicted, server 102 comprises user space 110, inline journaling module 112, file system driver 114, kernel space 116, file system 118, kernel module 120, disk 122, and non-volatile random-access memory (NVRAM) 124.

User space 110 can generally be a portion of system memory of server 102 in which user processes run. Then, kernel space 116 can generally be a portion of system memory of server 102 in which kernel processes run Inline journaling module 112 can comprise one or more instances of a process that implements incremental inline journaling on a file system, such as file system 118. In some examples, inline journaling module can implement aspects of process flow 300 of FIG. 3 to facilitate incremental inline journaling on a file system.

File system driver 114 can comprise a computer device driver that provides access to a file system (in which incremental inline journaling can be implemented) of server 102 to one or more applications or modules of server 102, such as inline journaling module 112 Inline journaling module 112 can create and send requests to read from and write to file system 118 via file system driver 114. File system 118 can comprise an organization of data on server 102 into one or more files and/or directories that can contain files. Kernel module 120 can provide some operating system functions for server 102, such as file management and resource allocation.

File system 118 can store one or more files in each of disk 122 and NVRAM 124. In some examples, files of file system 118 can generally be stored on disk 122, while metadata blocks and corresponding delta descriptor files (such as Txn descriptor 210, and delta descriptor 228 of FIG. 2, respectively) can be stored in NVRAM 124.

Server 102 can store and maintain one or more computer files, which can, in turn, be accessed by client computer 104 a and/or client computer 104 b. Client computer 104 a and/or client computer 104 b can access these files on server 102 via a server message block (SMB) protocol. In some examples, client computer 104 a and/or client computer 104 b can send server 102 requests to perform transactions that include modifying a file of server 102.

When server 102 receives a request to perform a transaction that includes modifying a file, this request can be directed to file system driver 114. File system driver 114 can communicate with kernel process 120, which can be responsible for receiving file change events and implementing those events (e.g., modifying a file). Then, inline journaling module 112 can determine that such a file modification has been made, will be made, or is being made, and implement incremental inline journaling that corresponds to this file change accordingly.

In general, inline journaling module 112 can, in response to determining that there is a transaction to be implemented (where the transaction is to modify a sub-block portion of a file that can be stored on disk 122), allocate a delta structure in file system 118 (such as in NVRAM 124). Then, when the transaction has been committed, inline journaling module 112 can save a current value of the sub-block portion of the file to the delta structure.

Inline journaling module 112 can then write a new value corresponding to the request for the transaction to modify the sub-block portion of the file to the metadata block. After writing the new value to the metadata block, inline journaling module 112 can free a memory space used to store the delta structure. In some examples, where a transaction is aborted (e.g., such as where power to server 102 is lost during the transaction), then inline journaling module 112 can delete one or more delta structures that correspond to this aborted transaction.

In some examples, inline journaling module 112 can take the following approach. Where a point-in-time consistent value of a delta field (e.g., offset within the delta from a given point in the delta where the delta field is located within the delta, and a size of the delta field), then a corresponding delta block can be freed. Such an approach can involve automatically updating a corresponding predecessor block stored in the journaled file system, and unlinking the corresponding delta. Pseudocode for such an approach can be expressed as follows:

1: delta→saved pred←pred value

2: delta→flushing←True

3: Apply delta

4: Unlink delta

That is, in line 1 of the above pseudocode, a predecessor value can be saved to a saved pred field of a delta. In line 2, a flushing field of the delta can be set to 2. In line 3, the delta can be applied to the journal, and then in line 4, the delta can be unlinked from the journal.

Such an approach can provide a single-reap-per-delta semantic, and can be accomplished by storing a current value in the delta; updating the corresponding predecessor block with a new value; and then unlinking the delta.

Such an approach can provide for a significant performance improvement in some system architectures, such as electronic design automation (EDA) workflows. Using such an approach in an EDA workflow can be shown to reduce a standard deviation metric for create and delete operations by 70%, with latency improved by 23%.

FIG. 2 illustrates an example of a journaled file system that can facilitate incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure. In some examples, journaled file system 200 can be used to implement some aspects of file system 118 of FIG. 1, and can be stored in NVRAM 124. It can be appreciated that journaled file system is depicted logically, and that there can be various ways to organize a journaled file system in accordance with incremental inline journaling in a journaled file system.

Journaled file system 200 comprises journal global 202, link 204, Txn descriptor 206, link 208, Txn descriptor 210, link 212, Txn descriptor 214, link 216, block descriptor 218, link 220, link 222, data 224, link 226, delta descriptor 228, link 230, link 232, delta descriptor 234, link 236, link 238, and link 240. A link can link one part of journaled file system 200 to another part of journaled file system 200, and in some embodiments, can be implemented as a pointer to a memory address (e.g., a memory address in NVRAM 124 of FIG. 1) where that other part of journaled file system 200 is stored.

As depicted, link 204 points from journal global 202 to Txn descriptor 206. Link 208 points from Txn descriptor 206 to Txn descriptor 210. Link 212 points from Txn descriptor 210 to Txn descriptor 212. Link 216 points from Txn descriptor 216 to block descriptor 218. Link 220 points from block descriptor 218 to data 224. Link 222 points from block descriptor 218, and can point to another aspect of journaled file system 220, such as a delta descriptor (which can be similar to delta descriptor 228).

Link 226 points from Txn descriptor 210 to delta descriptor 228. Link 230 points from delta descriptor 228 to data 224. Link 232 points from Txn descriptor 214 to delta descriptor 234. Link 236 points from delta descriptor 234 to data 226. Link 238 points from delta descriptor 234, and can point to another aspect of journaled file system 220, such as a delta descriptor (which can be similar to delta descriptor 228). Link 240 points from Txn descriptor 214, and can point to another aspect of journaled file system 220, such as a Txn descriptor (which can be similar to Txn descriptor 214).

Journal global 202 can comprise a data structure that has entries for next_seq and txn_list (which can point to a Txn descriptor, such as Txn descriptor 206). Txn descriptor 206, Txn descriptor 210, and Txn descriptor 214 can each comprise a data structure that has entries for seq, txn_state, desc_list, txn_link, shared_participant, num_participants, and participant 1, 2, etc. Using Txn descriptor 210 as a representative example of journaled file system 200, the txn_link entry of Txn descriptor 210 can both be where a pointer (e.g., link 204) from a prior Txn descriptor (e.g., Txn descriptor 206) points to, as well as the location within Txn descriptor 210 that stores a pointer (e.g., link 208) to another Txn descriptor (e.g., Txn descriptor 214). The desc_list field of Txn descriptor 210 can store a pointer (e.g., link 226) to a descriptor data structure, which is here depicted as delta descriptor 218. In some examples, a desc_list field of a Txn descriptor can point (e.g, link 216) to a block descriptor (such as with Txn descriptor 206, where the desc_list field points to block descriptor 218).

Block descriptor 218 can comprise a data structure that has entries for desc_link, drive|disk_block, and data_link. A desc_link field of block descriptor 218 can point (e.g., link 222) to a delta descriptor, which can be similar to delta descriptor 228. A data_link field of block descriptor 218 can point (e.g., link 220) to data, which is depicted here as data 224.

Delta descriptor 218 and delta descriptor 234 can each comprise a data structure that has entries for desc_link, drive|disk_block, and offset|op|value. Using the example of delta descriptor 234, desc_link can point (e.g., link 238) to another delta descriptor, which can be similar to delta descriptor 238. Drive|disk_block can point (e.g., link 236) to data, such as data 224, and can indicate a particular drive and a particular disk block within a distributed file system (e.g., file system 118 of FIG. 1) that is being referenced by one or more operations. Then, an offset|op|value field of delta descriptor 234 can indicate an offset within this disk block (e.g., a location within that disk block), an operation to be performed at that location (e.g., addition), and a value for that operation (e.g., a number to add to a current value at that location).

Data 224 can comprise one or more blocks stored on one or more disks of a distributed file system. Data 224 can also comprise data that is referenced by one or more block descriptors (e.g. block descriptor 218) and/or delta descriptors (e.g., delta descriptor 228 and delta descriptor 234).

Example Process Flow

FIG. 3 illustrates an example process flow for facilitating incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure. It can be appreciated that process flow 300 is an example process flow, and that there can be embodiments that implement more or fewer operations than are depicted in process flow 300, or that implement the operations of process flow 300 in a different order than is depicted in process flow 300.

In some embodiments, process flow 300 can be implemented with server 102 of FIG. 1 as server 102 modifies files of file system 118 in response to transaction requests from client computer 104 a and/or client computer 104 b. The process flow of FIG. 3 begins with 302, and then moves to operation 304.

Operation 304 depicts receiving a request for a transaction to modify a sub-block portion of a file stored in a distributed storage system. In some examples, this request can be originated by client computer 104 a and received by server 102 of FIG. 1. Where a file system (such as file system 118) is organized in blocks, a request to modify a sub-block portion of a file can be a request to modify part of a block (or a request to modify a file that, when implemented in the file system, will result in modifying part of a block). Furthermore, in some examples, a sub-block portion can be indicated by the block in which the sub-block portion exists, an offset from the start of the block where the sub-block portion exists, and a size of the sub-block portion (e.g., expressed in bytes).

In some examples, the distributed storage system of operation 304 can be server 102 of FIG. 1. In some examples, the distributed storage system is stored across least two computing nodes of a computing cluster that comprises a plurality of computing nodes.

In some examples, the file is stored on a disk of the distributed storage system. This disk can be disk 122 of FIG. 1, and the file can be stored there as opposed to (or in addition to) in NVRAM 124. After operation 304, process flow 300 moves to operation 306.

Operation 306 depicts, in response to receiving the request for the transaction, allocating the modification to a delta structure in a journal of the distributed storage system. In some examples, a journal of the distributed storage system can be similar to journaled file system 200 of FIG. 2.

In some examples, allocating the modification to a delta structure in the journal can comprise creating a delta structure in the journal, to be used for this transaction. The delta structure can be similar to delta descriptor 218 of FIG. 2.

In some examples, operation 306 can comprise, in response to determining that there is a transaction to modify a sub-block portion of a file stored in a distributed storage system, allocating, by a system comprising a processor, the modification to a data structure in a journal of the distributed storage system that corresponds to the file. After operation 306, process flow 300 moves to operation 308.

Operation 308 depicts determining a status of the transaction. In some examples, a status of the transaction can be determined by determining whether a commit( ) or an abort( ) procedure call has been made for the transaction, with a commit( ) procedure call being made indicating that the transaction was committed, an abort( ) procedure call being made indicating that the transaction was aborted, and with neither a commit( ) nor an abort( ) procedure call being made indicating that the transaction has not yet either committed nor aborted.

Where, in operation 308 it is determined that the status of the transaction is that the transaction has committed, then process flow 300 moves to operation 310. Instead, where in operation 308 it is determined that the status of the transaction is that the transaction has aborted, process flow 300 moves to operation 318.

Operation 310 is reached from operation 308 where it is determined in operation 308 that the transaction has committed. Operation 310 depicts saving a current value of the sub-block portion of the file to the delta structure. In some examples, this can comprise reading the value of the sub-block portion (which can be the entirety of the sub-block portion) from the sub-block portion as stored in memory (e.g., NVRAM 124 of FIG. 1), and then writing this value to the delta structure.

The value can be referred to as a current value in the sense that the value can be changed (e.g., changed to a new value) as a result of the transaction. In some examples, a current value and a new value can be referred to as a first value and a second value, respectively, or by other identifiers.

In some examples, operation 310 comprises, in response to determining that the transaction has committed, saving, by the system, the first value of the sub-block portion of the file to a delta structure that corresponds to the metadata block. In some examples, operation 310 comprises, in response to determining that a transaction to modify a sub-block portion of a file stored in a distributed storage system has committed, writing a current value corresponding to the modification to the sub-block portion of the file from a metadata block of the distributed storage system that corresponds to the file to a delta structure in a journal of the distributed storage system. After operation 310, process flow 300 moves to operation 312.

Operation 312 depicts writing a new value corresponding to the request for the transaction to modify the sub-block portion of the file to a metadata block that corresponds to the file. This new value can be written to a location in the block where the current value has been stored until this point.

In some examples, operation 312 can comprise, in response to determining that the current value, as saved in the delta structure, equals the current value in the metadata block, writing the new value corresponding to the request for the transaction to modify the sub-block portion of the file to the metadata block. That is, operation 312 can comprise determining that the current value has been successfully written to the delta structure before modifying the metadata block by writing the new value to the metadata block.

In some examples, the writing the new value comprises performing an operation on the current value, and wherein the operation comprises an order-independent operation. In some examples, the order-independent operation comprises at least one of an addition, a subtraction, determining a maximum of multiple values, or determining a minimum of the multiple values.

In some examples, operation 312 comprises locking, by the system, the metadata block while performing the writing the second value corresponding to the modification to the file to the metadata block. A lock can prevent another process or module from writing to the metadata block (or a part of the metadata block, such where the current value has been stored) for a period of time. This can also include preventing another write to the metadata block while performing the writing the new value to the metadata block.

In some examples, operation 312 comprises writing the new value to a NVRAM of the distributed storage system. This NVRAM can be NVRAM 124 of FIG. 1.

In some examples, operation 312 can comprise writing, by the system, a second value corresponding to the request for the transaction to modify the sub-block portion of the file to the metadata block. In some examples, operation 312 can comprise writing a new value corresponding to the transaction to modify the sub-block portion of the file to the metadata block. After operation 312, process flow 300 moves to operation 314.

Operation 314 depicts, after writing the new value to the metadata block, freeing a memory space used to store the delta structure. That is, the delta structure (which can be stored in NVRAM 124 of FIG. 1) can be removed from the file system (e.g., file system 118, or journaled file system 200 of FIG. 2).

In various embodiments, freeing the memory space used to store the delta structure can comprise one or more of flushing the delta structure by indicating that the delta structure is to be flushed; removing a link (e.g., link 226 of FIG. 2) between the metadata block and the delta structure; and removing the delta structure from the distributed storage system (e.g., deleting the delta structure in addition to freeing its corresponding memory space). After operation 314, process flow 300 moves to operation 316, where process flow 300 ends.

Operation 318 is reached from operation 308 where it is determined in operation 308 that the status of the transaction is that the transaction was aborted. Operation 318 depicts, in response to determining that the transaction was aborted, deleting a delta structure in the journal of the distributed file system that corresponds to the transaction. Since the corresponding transaction aborted, the delta structure is no longer necessary, and its memory can be released. In some examples, operation 318 can be implemented in a similar manner as operation 314. After operation 318, process flow 300 moves to operation 316, where process flow 300 ends.

In some examples, process flow 300 can include rebuilding a journal of the distributed storage system. This can occur, for example, in response to the distributed storage system shutting down due to losing power, and then being rebooted when power is restored. Rebuilding the journal in this manner can comprise, in response to rebuilding at least part of the journal of the distributed storage system that comprises the delta structure, and in response to determining that the delta structure is marked to be flushed, removing a link between the metadata block and the delta structure; removing an association between the metadata block and the delta structure (such as link 226 between Txn descriptor 210 and delta descriptor 228 of FIG. 2); or removing a link between the metadata block and the delta structure (such as link 226 between Txn descriptor 210 and delta descriptor 228 of FIG. 2).

In some examples, a delta flush (e.g., operations 310-314) can be taking place when the operations are interrupted, which can lead to rebuilding a journal. Where a delta was being flushed, the delta can be examined. Where a predecessor value equals a known field of the delta under consideration, then the delta can be applied to its corresponding predecessor block. Then, a delta can be unlinked where it was being flushed. This approach can be expressed using the following pseudocode:

1: if delta is flushing then 2: if predecessor value == delta → saved pred then 3: Apply Delta 4: end if 5: Unlink Delta 6: end if Example Tables

The following examples of FIGS. 4-5 can be based on experimental results from a computing system. These results can be measured on a four-node cluster computing system.

FIG. 4 illustrates example tables 400 of performance of the present techniques compared to performance of prior techniques. As depicted, table 410 depicts various metrics for results using example prior techniques, and table 450 depicts these same metrics for results using example present techniques. Table 410 contains columns for requested load (measured in operations per second, sometimes referred to as ops/sec) 412, achieved load (measured in ops/sec) 414, latency (measured in msec/op) 416, and total operations 418. Likewise, table 450 also contains columns for requested load (measured in ops/sec) 452, achieved load (measured in ops/sec) 454, latency (measured in msec/op) 456, and total operations 458. Requested load 412 and requested load 452 is the same in the examples of both table 410 and table 450.

As can be seen in tables 400, in these examples, the metrics for the present techniques (i.e., achieved load, latency, and total operations) in table 450 show comparable or superior performance as compared to the prior techniques (as illustrated in table 410) for a given load.

FIG. 5 illustrates example tables 500 of performance of the present techniques compared to performance of prior techniques. As depicted, table 510 depicts various metrics for results using example prior techniques, and table 550 depicts these same metrics for results using example present techniques. Table 510 contains columns for network file system (NFS) operation type 512, mean latency (measured in msec/op) 514, and standard deviation latency (measured in msec/op) 516. Likewise, table 550 also contains columns for NFS operation type 552, mean latency (measured in msec/op) 554, and standard deviation latency (measured in msec/op) 556. NFS operation type 512 and NFS operation type 552 is the same in the examples of both table 510 and table 550.

As can be seen in tables 500, in these examples, the metrics for the present techniques (i.e., achieved load, latency, and total operations) in table 550 show comparable or superior performance as compared to the prior techniques (as illustrated in table 510) for a NFS operation type.

Example Graphs

Similar to FIGS. 4-5, the following examples of FIGS. 6-7 can be based on experimental results from a computing system. These results can be measured on a four-node cluster computing system.

FIG. 6 illustrates an example graph 600 of performance of the present techniques compared to performance of prior techniques. As depicted, graph 600 plots latency (measured in msec/operation) on the y-axis 602 against requested load (measured in thousands of operations/sec, sometimes referred to as Kops/sec) on the x-axis 604. Then, on this graph, results for the present technique 606, as well as results for a prior technique 608.

As can be seen, these results for the present technique 606 are shown to be an improvement to results for the prior technique 608 in this example. That is, in this example, results for the present technique 606 generally indicate a lower latency as compared to results for the prior technique 608.

FIG. 7 illustrates another example graph 700 of performance of the present techniques compared to performance of prior techniques. As depicted, graph 700 plots achieved load (measured in Kops/sec) on the y-axis 702 against requested load (measured in Kops/sec) on the x-axis 704. Then, on this graph, results for the present technique 706, as well as results for a prior technique 708. As can be seen, these results for the present technique 706 are shown to be an improvement to results for the prior technique 708 in this example. That is, in this example, results for the present technique 706 generally indicate a higher achieved load as compared to results for the prior technique 708.

Example Process Flow

FIG. 8 illustrates another example process flow for facilitating incremental inline journaling in a journaled file system, in accordance with certain embodiments of this disclosure. It can be appreciated that process flow 800 is an example process flow, and that there can be embodiments that implement more or fewer operations than are depicted in process flow 800, or that implement the operations of process flow 800 in a different order than is depicted in process flow 800.

In some embodiments, process flow 800 can be implemented with server 102 of FIG. 1 as server 102 modifies files of file system 118 in response to transaction requests from client computer 104 a and/or client computer 104 b. In some cases, a received transaction aborts before it completes. In these cases, it may be that one or more delta structures has been created while processing the transaction before the transaction aborts. Where these delta structures have been created as part of the transaction, and where it is determined that the transaction has aborted, in some examples, these delta structures can then be deleted.

The process flow of FIG. 8 begins with 802, and then moves to operation 804. Operation 804 depicts receiving a transaction. In some examples, operation 804 can be implemented in a similar manner as operation 304 of FIG. 3. After operation 804, the process flow of FIG. 8 moves to operation 806.

Operation 806 comprises creating a delta for the transaction. In some examples, operation 806 can be implemented in a similar manner as operation 306 of FIG. 3. Operation 806 can comprise creating (e.g., by inline journaling module 112 of FIG. 1) a delta in NVRAM 124. After operation 806, the process flow of FIG. 8 moves to operation 808.

Operation 808 comprises determining that the transaction aborted. In some examples, operation 808 can be implemented in a similar manner as operation 308 of FIG. 3, where it is determined in operation 308 that the transaction aborted. After operation 808, the process flow of FIG. 8 moves to operation 810.

Operation 810 depicts deleting the delta. In some examples, operation 810 can be implemented in a similar manner as operation 318 of FIG. 3. After operation 810, the process flow of FIG. 8 moves to operation 812, where the process flow of FIG. 8 ends.

Example Operating Environments

To provide further context for various aspects of the subject specification, FIGS. 9 and 10 illustrate, respectively, a block diagram of an example distributed file storage system 900 that employs tiered cloud storage and block diagram of a computer 1002 operable to execute the disclosed storage architecture in accordance with aspects described herein. For example, aspects of distributed storage system 900 and computer 1002 can be used to implement server 102 of FIG. 1, and aspects of computer 1002 can be used to implement client computer 104 a and client computer 104 b of FIG. 1.

Referring now to FIG. 9, there is illustrated an example local storage system including cloud tiering components and a cloud storage location in accordance with implementations of this disclosure. Client device 902 can access local storage system 990. Local storage system 990 can be a node and cluster storage system such as an EMC Isilon Cluster that operates under OneFS operating system. Local storage system 990 can also store the local cache 992 for access by other components. It can be appreciated that the systems and methods described herein can run in tandem with other local storage systems as well.

As more fully described below with respect to redirect component 910, redirect component 910 can intercept operations directed to stub files. Cloud block management component 920, garbage collection component 930, and caching component 940 may also be in communication with local storage system 990 directly as depicted in FIG. 9 or through redirect component 910. A client administrator component 904 can use an interface to access the policy component 950 and the account management component 960 for operations as more fully described below with respect to these components. Data transformation component 970 can operate to provide encryption and compression to files tiered to cloud storage. Cloud adapter component 980 can be in communication with cloud storage 1 and cloud storage N, where N is a positive integer. It can be appreciated that multiple cloud storage locations can be used for storage including multiple accounts within a single cloud storage location as more fully described in implementations of this disclosure. Further, a backup/restore component 997 can be utilized to back up the files stored within the local storage system 990.

Cloud block management component 920 manages the mapping between stub files and cloud objects, the allocation of cloud objects for stubbing, and locating cloud objects for recall and/or reads and writes. It can be appreciated that as file content data is moved to cloud storage, metadata relating to the file, for example, the complete Mode and extended attributes of the file, can be still stored locally, as a stub. In one implementation, metadata relating to the file can also be stored in cloud storage for use, for example, in a disaster recovery scenario.

Mapping between a stub file and a set of cloud objects models the link between a local file (e.g., a file location, offset, range, etc.) and a set of cloud objects where individual cloud objects can be defined by at least an account, a container, and an object identifier. The mapping information (e.g., mapinfo) can be stored as an extended attribute directly in the file. It can be appreciated that in some operating system environments, the extended attribute field can have size limitations. For example, in one implementation, the extended attribute for a file is 8 kilobytes. In one implementation, when the mapping information grows larger than the extended attribute field provides, overflow mapping information can be stored in a separate system b-tree. For example, when a stub file is modified in different parts of the file, and the changes are written back in different times, the mapping associated with the file may grow. It can be appreciated that having to reference a set of non-sequential cloud objects that have individual mapping information rather than referencing a set of sequential cloud objects, can increase the size of the mapping information stored. In one implementation, the use of the overflow system b-tree can limit the use of the overflow to large stub files that are modified in different regions of the file.

File content can be mapped by the cloud block management component 920 in chunks of data. A uniform chunk size can be selected where all files that tiered to cloud storage can be broken down into chunks and stored as individual cloud objects per chunk. It can be appreciated that a large chunk size can reduce the number of objects used to represent a file in cloud storage; however, a large chunk size can decrease the performance of random writes.

The account management component 960 manages the information for cloud storage accounts. Account information can be populated manually via a user interface provided to a user or administer of the system. Each account can be associated with account details such as an account name, a cloud storage provider, a uniform resource locator (“URL”), an access key, a creation date, statistics associated with usage of the account, an account capacity, and an amount of available capacity. Statistics associated with usage of the account can be updated by the cloud block management component 920 based on list of mappings it manages. For example, each stub can be associated with an account, and the cloud block management component 920 can aggregate information from a set of stubs associated with the same account. Other example statistics that can be maintained include the number of recalls, the number of writes, the number of modifications, the largest recall by read and write operations, etc. In one implementation, multiple accounts can exist for a single cloud service provider, each with unique account names and access codes.

The cloud adapter component 980 manages the sending and receiving of data to and from the cloud service providers. The cloud adapter component 980 can utilize a set of APIs. For example, each cloud service provider may have provider specific API to interact with the provider.

A policy component 950 enables a set of policies that aid a user of the system to identify files eligible for being tiered to cloud storage. A policy can use criteria such as file name, file path, file size, file attributes including user generated file attributes, last modified time, last access time, last status change, and file ownership. It can be appreciated that other file attributes not given as examples can be used to establish tiering policies, including custom attributes specifically designed for such purpose. In one implementation, a policy can be established based on a file being greater than a file size threshold and the last access time being greater than a time threshold.

In one implementation, a policy can specify the following criteria: stubbing criteria, cloud account priorities, encryption options, compression options, caching and IO access pattern recognition, and retention settings. For example, user selected retention policies can be honored by garbage collection component 930. In another example, caching policies such as those that direct the amount of data cached for a stub (e.g., full vs. partial cache), a cache expiration period (e.g., a time period where after expiration, data in the cache is no longer valid), a write back settle time (e.g., a time period of delay for further operations on a cache region to guarantee any previous writebacks to cloud storage have settled prior to modifying data in the local cache), a delayed invalidation period (e.g., a time period specifying a delay until a cached region is invalidated thus retaining data for backup or emergency retention), a garbage collection retention period, backup retention periods including short term and long term retention periods, etc.

A garbage collection component 930 can be used to determine which files/objects/data constructs remaining in both local storage and cloud storage can be deleted. In one implementation, the resources to be managed for garbage collection include cloud metadata objects (CMOs), cloud data objects (CDOs) (e.g., a cloud object containing the actual tiered content data), local cache data, and cache state information.

A caching component 940 can be used to facilitate efficient caching of data to help reduce the bandwidth cost of repeated reads and writes to the same portion (e.g., chunk or sub-chunk) of a stubbed file, can increase the performance of the write operation, and can increase performance of read operations to portion of a stubbed file accessed repeatedly. As stated above with regards to the cloud block management component 920, files that are tiered are split into chunks and in some implementations, sub chunks. Thus, a stub file or a secondary data structure can be maintained to store states of each chunk or sub-chunk of a stubbed file. States (e.g., stored in the stub as cacheinfo) can include a cached data state meaning that an exact copy of the data in cloud storage is stored in local cache storage, a non-cached state meaning that the data for a chunk or over a range of chunks and/or sub chunks is not cached and therefore the data has to be obtained from the cloud storage provider, a modified state or dirty state meaning that the data in the range has been modified, but the modified data has not yet been synched to cloud storage, a sync-in-progress state that indicates that the dirty data within the cache is in the process of being synced back to the cloud and a truncated state meaning that the data in the range has been explicitly truncated by a user. In one implementation, a fully cached state can be flagged in the stub associated with the file signifying that all data associated with the stub is present in local storage. This flag can occur outside the cache tracking tree in the stub file (e.g., stored in the stub file as cacheinfo), and can allow, in one example, reads to be directly served locally without looking to the cache tracking tree.

The caching component 940 can be used to perform at least the following seven operations: cache initialization, cache destruction, removing cached data, adding existing file information to the cache, adding new file information to the cache, reading information from the cache, updating existing file information to the cache, and truncating the cache due to a file operation. It can be appreciated that besides the initialization and destruction of the cache, the remaining five operations can be represented by four basic file system operations: Fill, Write, Clear and Sync. For example, removing cached data can be represented by clear, adding existing file information to the cache can be represented by fill, adding new information to the cache by write, reading information from the cache can be represented by read following a fill, updating existing file information to the cache can be represented by fill followed by a write, and truncating cache due to file operation can be represented by sync and then a partial clear.

In one implementation, the caching component 940 can track any operations performed on the cache. For example, any operation touching the cache can be added to a queue prior to the corresponding operation being performed on the cache. For example, before a fill operation, an entry can be placed on an invalidate queue as the file and/or regions of the file will be transitioning from an uncached state to cached state. In another example, before a write operation, an entry can be placed on a synchronization list as the file and/or regions of the file will be transitioning from cached to cached-dirty. A flag can be associated with the file and/or regions of the file to show that it has been placed in a queue, and the flag can be cleared upon successfully completing the queue process.

In one implementation, a time stamp can be utilized for an operation along with a custom settle time depending on the operations. The settle time can instruct the system how long to wait before allowing a second operation on a file and/or file region. For example, if the file is written to cache and a write back entry is also received, by using settle times, the write back can be requeued rather than processed if the operation is attempted to be performed prior to the expiration of the settle time.

In one implementation, a cache tracking file can be generated and associated with a stub file at the time it is tiered to the cloud. The cache tracking file can track locks on the entire file and/or regions of the file and the cache state of regions of the file. In one implementation, the cache tracking file is stored in an Alternate Data Stream (ADS). It can be appreciated that ADS can be based on the New Technology File System (NTFS) ADS. In one implementation, the cache tracking tree tracks file regions of the stub file, cached states associated with regions of the stub file, a set of cache flags, a version, a file size, a region size, a data offset, a last region, and a range map.

In one implementation, a cache fill operation can be processed by the following steps: (1) an exclusive lock on can be activated on the cache tracking tree; (2) it can be verified whether the regions to be filled are dirty; (3) the exclusive lock on the cache tracking tree can be downgraded to a shared lock; (4) a shared lock can be activated for the cache region; (5) data can be read from the cloud into the cache region; (6) update the cache state for the cache region to cached; and (7) locks can be released.

In one implementation, a cache read operation can be processed by the following steps: (1) a shared lock on the cache tracking tree can be activated; (2) a shared lock on the cache region for the read can be activated; (3) the cache tacking tree can be used to verify that the cache state for the cache region is not “not cached;” (4) data can be read from the cache region; (5) the shared lock on the cache region can be deactivated; and (6) the shared lock on the cache tracking tree can be deactivated.

In one implementation, a cache write operation can be processed by the following steps: (1) an exclusive lock on can be activated on the cache tracking tree; (2) the file can be added to the synch queue; (3) if the file size of the write is greater than the current file size, the cache range for the file can be extended; (4) the exclusive lock on the cache tracking tree can be downgraded to a shared lock; (5) an exclusive lock can be activated on the cache region; (6) if the cache tracking tree marks the cache region as “not cached,” the region can be filled; (7) the cache tracking tree can updated to mark the cache region as dirty; (8) the data can be written to the cache region; and (9) the lock can be deactivated.

In one implementation, data can be cached at the time of a first read. For example, if the state associated with the data range called for in a read operation is non-cached, then this can be deemed a first read, and the data can be retrieved from the cloud storage provider and stored into local cache. In one implementation, a policy can be established for populating the cache with range of data based on how frequently the data range is read; thus, increasing the likelihood that a read request will be associated with a data range in a cached data state. It can be appreciated that limits on the size of the cache, and the amount of data in the cache can be limiting factors in the amount of data populated in the cache via policy.

A data transformation component 970 can encrypt and/or compress data that is tiered to cloud storage. In relation to encryption, it can be appreciated that when data is stored in off-premises cloud storage and/or public cloud storage, users can require data encryption to ensure data is not disclosed to an illegitimate third party. In one implementation, data can be encrypted locally before storing/writing the data to cloud storage.

In one implementation, the backup/restore component 997 can transfer a copy of the files within the local storage system 990 to another cluster (e.g., target cluster). Further, the backup/restore component 997 can manage synchronization between the local storage system 990 and the other cluster, such that, the other cluster is timely updated with new and/or modified content within the local storage system 990.

FIG. 10 illustrates a block diagram of a computer 1002 operable to execute the disclosed communication architecture. To provide additional context for various aspects of the disclosed subject matter, FIG. 10 and the following discussion are intended to provide a brief, general description of a suitable computing environment 1000 in which the various aspects of the specification can be implemented. While the specification has been described above in the general context of computer-executable instructions that can run on one or more computers, those skilled in the art will recognize that the specification also can be implemented in combination with other program modules and/or as a combination of hardware and software.

Generally, program modules include routines, programs, components, data structures, etc., that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that the inventive methods can be practiced with other computer system configurations, including single-processor or multiprocessor computer systems, minicomputers, mainframe computers, as well as personal computers, hand-held computing devices, microprocessor-based or programmable consumer electronics, and the like, each of which can be operatively coupled to one or more associated devices. The illustrated aspects of the specification can also be practiced in distributed computing environments where certain tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote memory storage devices.

Computing devices can include a variety of media, which can include computer-readable storage media and/or communications media, which two terms are used herein differently from one another as follows. Computer-readable storage media can be any available storage media that can be accessed by the computer and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer-readable storage media can be implemented in connection with any method or technology for storage of information such as computer-readable instructions, program modules, structured data, or unstructured data. Computer-readable storage media can include, but are not limited to, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD; sometimes referred to as digital video disc) or other optical disc storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or other tangible and/or non-transitory media which can be used to store desired information. Computer-readable storage media can be accessed by one or more local or remote computing devices, e.g., via access requests, queries or other data retrieval protocols, for a variety of operations with respect to the information stored by the medium.

Communications media typically embody computer-readable instructions, data structures, program modules or other structured or unstructured data in a data signal such as a modulated data signal, e.g., a carrier wave or other transport mechanism, and includes any information delivery or transport media. The term “modulated data signal” or signals can refer to a signal that has one or more of its characteristics set or changed in such a manner as to encode information in one or more signals. By way of example, and not limitation, communication media include wired media, such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared and other wireless media.

With reference again to FIG. 10, the example environment 1000 for implementing various aspects of the specification includes a computer 1002, the computer 1002 including a processing unit 1004, a system memory 1006 and a system bus 1008. As an example, the component(s), server(s), node(s), cluster(s), system(s), and/or device(s) disclosed herein can each include at least a portion of the computer 1002. The system bus 1008 can couple system components including, but not limited to, the system memory 1006 to the processing unit 1004. The processing unit 1004 can be any of various commercially-available or custom processors. Dual microprocessors and other multi-processor architectures can also be employed as the processing unit 1004.

The system bus 1008 can be any of several types of bus structure that can further interconnect to a memory bus (with or without a memory controller), a peripheral bus, and a local bus using any of a variety of commercially available bus architectures. The system memory 1006 can include ROM 1010 and RAM 1012. A basic input/output system (BIOS) can be stored in a non-volatile memory 1010 such as ROM, erasable programmable read-only memory (EPROM), EEPROM, where the BIOS can contain the basic routines that help to transfer information between elements within the computer 1002, such as during startup. The RAM 1012 can also include a high-speed RAM such as static RAM for caching data, or NVRAM.

The computer 1002 further includes an internal hard disk drive (HDD) 1014, which internal hard disk drive 1014 can also be configured for external use in a suitable chassis (not shown), a magnetic floppy disk drive (FDD) 1016, (e.g., to read from or write to a removable diskette 1018) and an optical disc drive 1020, (e.g., reading a CD-ROM disc 1022 or, to read from or write to other high capacity optical media such as the DVD). The hard disk drive 1014, magnetic disk drive 1016 and optical disc drive 1020 can be connected to the system bus 1008 by a hard disk drive interface 1024, a magnetic disk drive interface 1026 and an optical drive interface 1028, respectively. The interface 1024 for external drive implementations can include at least one or both of Universal Serial Bus (USB) and Institute of Electrical and Electronics Engineers (IEEE) 1394 interface technologies. Other external drive connection technologies are within contemplation of the subject disclosure.

The drives and their associated computer-readable storage media can provide nonvolatile storage of data, data structures, computer-executable instructions, and so forth. For the computer 1002, the drives and storage media can accommodate the storage of any data in a suitable digital format. Although the description of computer-readable storage media above refers to a HDD, a removable magnetic diskette, and a removable optical media such as a CD or DVD, it should be appreciated by those skilled in the art that other types of storage media which are readable by a computer, such as zip drives, magnetic cassettes, flash memory cards, cartridges, and the like, can also be used in the example operating environment, and further, that any such storage media can contain computer-executable instructions for performing the methods of the specification.

Many program modules can be stored in the drives and RAM 1012, including an operating system 1030, one or more application programs 1032, other program modules 1034 and program data 1036. All or portions of the operating system, applications, modules, and/or data can also be cached in the RAM 1012. It is appreciated that the specification can be implemented with various commercially available operating systems or combinations of operating systems.

A user can enter commands and information into the computer 1002 through one or more wired or wireless input devices, e.g., a keyboard 1038 and/or a pointing device, such as a mouse 1040 or a touch screen or touchpad (not illustrated). These and other input devices can be connected to the processing unit 1004 through an input device interface 1042 that is coupled to the system bus 1008, but can be connected by other interfaces, such as a parallel port, an IEEE 1394 port, a game port, a USB port, an infrared (IR) interface, etc. A monitor 1044 or other type of display device can also be connected to the system bus 1008 via an interface, such as a video adapter 1046.

The computer 1002 can operate in a networked environment using logical connections via wired and/or wireless communications to one or more remote computers, such as a remote computer(s) 1048. The remote computer(s) 1048 can be a workstation, a server computer, a router, a personal computer, portable computer, microprocessor-based entertainment appliance, a peer device or other common network node, and can include many or all the elements described relative to the computer 1002, although, for purposes of brevity, only a memory/storage device 1050 is illustrated. The logical connections depicted include wired/wireless connectivity to a local area network (LAN) 1052 and/or larger networks, e.g., a wide area network (WAN) 1054. Such LAN and WAN networking environments can be commonplace in offices and companies, and facilitate enterprise-wide computer networks, such as intranets, all of which can connect to a global communications network, e.g., the Internet.

When used in a LAN networking environment, the computer 1002 is connected to the local network 1052 through a wired and/or wireless communication network interface or adapter 1056. The adapter 1056 can facilitate wired or wireless communication to the LAN 1052, which can also include a wireless access point disposed thereon for communicating with the wireless adapter 1056.

When used in a WAN networking environment, the computer 1002 can include a modem 1058, or is connected to a communications server on the WAN 1054, or has other means for establishing communications over the WAN 1054, such as by way of the Internet. The modem 1058, which can be internal or external and a wired or wireless device, can be connected to the system bus 1008 via the serial port interface 1042. In a networked environment, program modules depicted relative to the computer 1002, or portions thereof, can be stored in the remote memory/storage device 1050. It will be appreciated that the network connections shown are example and other means of establishing a communications link between the computers can be used.

The computer 1002 can be operable to communicate with any wireless devices or entities operatively disposed in wireless communication, e.g., desktop and/or portable computer, server, communications satellite, etc. This includes at least Wireless Fidelity (Wi-Fi) and BLUETOOTH wireless technologies. Thus, the communication can be a predefined structure as with a conventional network or simply an ad hoc communication between at least two devices.

Wi-Fi can allow a connection to the Internet from a couch at home, a bed in a hotel room, or a conference room at work, without wires. Wi-Fi can be a wireless technology similar to that used in a cell phone that enables such devices, e.g., computers, to send and receive data indoors and out; anywhere within the range of a base station. Wi-Fi networks can use radio technologies called IEEE 802.11 (a, b, g, n, etc.) to provide secure, reliable, fast wireless connectivity. A Wi-Fi network can be used to connect computers to each other, to the Internet, and to wired networks (which can use an IEEE 802.3 standard or Ethernet). Wi-Fi networks can operate in the unlicensed 5 GHz radio band at a 54 Mbps (802.11a) data rate, and/or a 2.4 GHz radio band at an 11 Mbps (802.11b), a 54 Mbps (802.11g) data rate, or up to a 600 Mbps (802.11n) data rate for example, or with products that contain both bands (dual band), so the networks can provide real-world performance similar to the basic “10 BaseT” wired Ethernet networks used in many offices.

As it employed in the subject specification, the term “processor” can refer to substantially any computing processing unit or device comprising, but not limited to comprising, single-core processors; single-processors with software multithread execution capability; multi-core processors; multi-core processors with software multithread execution capability; multi-core processors with hardware multithread technology; parallel platforms; and parallel platforms with distributed shared memory in a single machine or multiple machines. Additionally, a processor can refer to an integrated circuit, a state machine, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable gate array (PGA) including a field programmable gate array (FPGA), a programmable logic controller (PLC), a complex programmable logic device (CPLD), a discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. Processors can exploit nano-scale architectures such as, but not limited to, molecular and quantum-dot based transistors, switches and gates, in order to optimize space usage or enhance performance of user equipment. A processor may also be implemented as a combination of computing processing units. One or more processors can be utilized in supporting a virtualized computing environment. The virtualized computing environment may support one or more virtual machines representing computers, servers, or other computing devices. In such virtualized virtual machines, components such as processors and storage devices may be virtualized or logically represented. In an aspect, when a processor executes instructions to perform “operations”, this could include the processor performing the operations directly and/or facilitating, directing, or cooperating with another device or component to perform the operations.

In the subject specification, terms such as “data store,” data storage,” “database,” “cache,” and substantially any other information storage component relevant to operation and functionality of a component, refer to “memory components,” or entities embodied in a “memory” or components comprising the memory. It will be appreciated that the memory components, or computer-readable storage media, described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of illustration, and not limitation, nonvolatile memory can include ROM, programmable ROM (PROM), EPROM, EEPROM, or flash memory. Volatile memory can include RAM, which acts as external cache memory. By way of illustration and not limitation, RAM can be available in many forms such as synchronous RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). Additionally, the disclosed memory components of systems or methods herein are intended to comprise, without being limited to comprising, these and any other suitable types of memory.

The illustrated aspects of the disclosure can be practiced in distributed computing environments where certain tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote memory storage devices.

The systems and processes described above can be embodied within hardware, such as a single integrated circuit (IC) chip, multiple ICs, an ASIC, or the like. Further, the order in which some or all of the process blocks appear in each process should not be deemed limiting. Rather, it should be understood that some of the process blocks can be executed in a variety of orders that are not all of which may be explicitly illustrated herein.

As used in this application, the terms “component,” “module,” “system,” “interface,” “cluster,” “server,” “node,” or the like are generally intended to refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution or an entity related to an operational machine with one or more specific functionalities. For example, a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, computer-executable instruction(s), a program, and/or a computer. By way of illustration, both an application running on a controller and the controller can be a component. One or more components may reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers. As another example, an interface can include input/output (I/O) components as well as associated processor, application, and/or API components.

Further, the various embodiments can be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques to produce software, firmware, hardware, or any combination thereof to control a computer to implement one or more aspects of the disclosed subject matter. An article of manufacture can encompass a computer program accessible from any computer-readable device or computer-readable storage/communications media. For example, computer readable storage media can include but are not limited to magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips . . . ), optical discs (e.g., CD, DVD . . . ), smart cards, and flash memory devices (e.g., card, stick, key drive . . . ). Of course, those skilled in the art will recognize many modifications can be made to this configuration without departing from the scope or spirit of the various embodiments.

In addition, the word “example” or “exemplary” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects or designs. Rather, use of the word exemplary is intended to present concepts in a concrete fashion. As used in this application, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless specified otherwise, or clear from context, “X employs A or B” is intended to mean any of the natural inclusive permutations. That is, if X employs A; X employs B; or X employs both A and B, then “X employs A or B” is satisfied under any of the foregoing instances. In addition, the articles “a” and “an” as used in this application and the appended claims should generally be construed to mean “one or more” unless specified otherwise or clear from context to be directed to a singular form.

What has been described above includes examples of the present specification. It is, of course, not possible to describe every conceivable combination of components or methods for purposes of describing the present specification, but one of ordinary skill in the art may recognize that many further combinations and permutations of the present specification are possible. Accordingly, the present specification is intended to embrace all such alterations, modifications and variations that fall within the spirit and scope of the appended claims. Furthermore, to the extent that the term “includes” is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term “comprising” as “comprising” is interpreted when employed as a transitional word in a claim. 

What is claimed is:
 1. A system, comprising: a processor; and a memory that stores executable instructions that, when executed by the processor, facilitate performance of operations, comprising: receiving a request for a transaction to modify a sub-block portion of a file stored in a distributed storage system; in response to receiving the request for the transaction, allocating modification of the sub-block portion to a delta structure in a journal that is stored in a memory of the distributed storage system; after allocating the modification of the sub-block portion to the delta structure, determining a status of the transaction; in response to determining that the status of the transaction is aborted, deleting the delta structure; and in response to determining that the status of the transaction is committed, reading a current value of the sub-block portion of the file from the sub-block portion of the file, wherein the sub-block portion of the file comprises a first location of a metadata block of the file; writing the current value of the sub-block portion of the file to the delta structure; writing a new value corresponding to the request for the transaction to modify the sub-block portion of the file to the first location of the metadata block, wherein writing the new value comprises implementing a file lock on the metadata block while performing the writing the new value corresponding to the request to modify the file to the metadata block; and after the writing the new value to the metadata block, freeing a memory space of the journal that is used to store the delta structure.
 2. The system of claim 1, wherein the operations further comprise: in response to rebuilding at least part of the journal of the distributed storage system that comprises the delta structure, and in response to determining that the delta structure is marked to be flushed, removing a link between the metadata block and the delta structure.
 3. The system of claim 2, wherein the writing the new value corresponding to the request for the transaction to modify the sub-block portion of the file to the metadata block further comprises: in response to determining that the current value, as saved in the delta structure, equals the current value in the metadata block, writing the new value corresponding to the request for the transaction to modify the sub-block portion of the file to the metadata block.
 4. The system of claim 1, wherein the writing the new value comprises performing an operation on the current value, and wherein the operation comprises an order-independent operation.
 5. The system of claim 4, wherein the order-independent operation comprises at least one of an addition, a subtraction, determining a maximum of multiple values, or determining a minimum of the multiple values.
 6. The system of claim 1, wherein the distributed storage system is stored across at least two computing nodes of a computing cluster that comprises a plurality of computing nodes.
 7. The system of claim 1, wherein the freeing the memory space of the journal that is used to store the delta structure further comprises: removing an association between the metadata block and the delta structure.
 8. A method, comprising: in response to determining that there is a transaction to modify a sub-block portion of a file stored in a distributed storage system, allocating, by a system comprising a processor, modification of a delta structure in a journal of the distributed storage system that corresponds to the file, the journal being stored in a memory of the distributed storage system; after allocating the modification of the sub-block portion to the delta structure, determining a status of the transaction; in response to determining that the status of the transaction is aborted, deleting the delta structure; and in response to determining that the status of the transaction is committed, reading, by the system, a first value of the sub-block portion of the file from the sub-block portion of the file, wherein the sub-block portion of the file comprises a first location of a metadata block of the file; writing, by the system, the first value of the sub-block portion of the file to the delta structure that corresponds to the metadata block associated with the file; writing, by the system to the first location of the metadata block, a second value corresponding to the transaction to modify the sub-block portion of the file, wherein writing the second value comprises implementing a file lock on the metadata block while performing the writing the second value corresponding to the transaction to modify the file to the metadata block; and after writing the second value to the metadata block, freeing, by the system, a memory space of the journal that is used to store the delta structure.
 9. The method of claim 8, wherein the freeing the memory space used to store the delta structure further comprises: indicating that the delta structure is to be flushed.
 10. The method of claim 8, wherein the freeing the memory space used to store the delta structure further comprises: removing an association between the metadata block and the delta structure.
 11. The method of claim 8, wherein the freeing the memory space used to store the delta structure further comprises: removing the delta structure from the distributed storage system.
 12. The method of claim 8, wherein the transaction is a first transaction to modify a first-sub-block portion a first file stored in the distributed storage system, wherein the delta structure is a first delta structure, and further comprising: receiving, by the system, a second transaction to modify a second sub-block portion of a second file stored in the distributed storage system; and in response to determining that the second transaction has aborted, deleting, by the system, a second delta structure in the journal of the distributed storage system that corresponds to the second transaction.
 13. The method of claim 8, further comprising: in response to rebuilding at least part of the journal of the distributed storage system that comprises the delta structure, and in response to determining that the delta structure is marked to be flushed, removing, by the system, an association between the metadata block and the delta structure.
 14. The method of claim 13, wherein the writing the second value further comprises: in response to determining that the first value as saved in the delta structure equals the first value in the metadata block, writing, by the system, the second value to the metadata block.
 15. A non-transitory computer-readable medium comprising instructions that, in response to execution, cause a system comprising a processor to perform operations, comprising: receiving a request for a transaction to modify a sub-block portion of a file stored in a distributed storage system; in response to receiving the request for the transaction, allocating modification of the sub-block portion to a delta structure in a journal that is stored in a memory of the distributed storage system; after allocating the modification of the sub-block portion to the delta structure, determining a status of the transaction; in response to determining that the status of the transaction is aborted, deleting the delta structure; and in response to determining that the status of the transaction is committed, and as part of an atomic operation, reading a current value from the sub-block portion of the file, wherein the sub-block portion of the file comprises a first location of a metadata block of the file; writing the current value to the delta structure; ’writing a new value corresponding to the transaction for the modification of the sub-block portion of the file to the first location of the metadata block, wherein writing the new value comprises implementing a file lock on the metadata block while performing the writing the new value corresponding to the request to modify the file to the metadata block; and after the writing the new value to the metadata block, freeing a memory space of the journal that is used to store the delta structure.
 16. The non-transitory computer-readable medium of claim 15, wherein the writing the current value further comprises: reading the current value from a non-volatile random-access memory of the distributed storage system.
 17. The non-transitory computer-readable medium of claim 16, wherein the file is stored on a disk of the distributed storage system.
 18. The non-transitory computer-readable medium of claim 15, wherein the writing the new value corresponding to the transaction for the modification of the sub-block portion of the file to the metadata block further comprises: writing the new value to a non-volatile random-access memory of the distributed storage system.
 19. The non-transitory computer-readable medium of claim 15, wherein the operations further comprise: preventing another write to the metadata block while performing the writing the new value to the metadata block.
 20. The non-transitory computer-readable medium of claim 15, wherein the operations further comprise: in response to rebuilding at least part of the distributed storage system that comprises the delta structure, and in response to determining that the delta structure is to be flushed, removing a link between the metadata block and the delta structure. 